package com.qing.springcloud.common;

import lombok.Getter;

/**
 * @author caozhipeng
 * @date 2025/7/11
 * @ description 消息类型枚举类
 */
@Getter
public enum MessageTypeEnum implements CommonEnum{
    TEXT(0, "文本"),
    IMAGE(1, "图片"),
    VOICE(2, "语音"),
    VIDEO(3, "视频"),
    FILE(4, "文件"),
    LOCATION(5, "位置"),
    RED_PACKET(6, "红包"),
    NOTICE(7, "通知"),
    SYSTEM(8, "系统"),
    CARD(9, "名片"),
    GROUP_NOTICE(10, "群公告"),
    GROUP_CARD(11, "群名片");

    private Integer code;

    private String name;

    private  MessageTypeEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
